function initEncrtypt(form, psInput, rpsInput) {
    form.addEventListener("submit", function() {
        var password = psInput.value;
        if (password) {
            var encrypt = new JSEncrypt();
            encrypt.setPublicKey(cokiConfig.encryptPublic);
            var encrypted = encrypt.encrypt(password);
            rpsInput.value = encrypted;
        }
    });
}